package com.amos.base.base;

/**
 * @author Amos
 * @ClassName Mapper
 * @Description Mapper基类  封装通用的Mapper
 * @Date 2018/12/20 21:32
 * @VERSION 1.0
 **/
public interface Mapper<T extends BaseEntity> {

    int deleteByPrimaryKey(String id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);
}
